/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.bean;

import java.util.Date;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * shBuilding
 * 
 * @author KongXiangyu
 * @since 2015-09-07
 */
public class ShBuilding extends BaseDomain {
	private static final long serialVersionUID = 1L;
	private Long residenceId;
	private Long parentId;
	private String name;
	private Integer sortWeight;
	private Date gmtCreate;
	private Date gmtModify;
	private Integer active;

	private Date startGmtCreate;
	private Date endGmtCreate;
	private Date startGmtModify;
	private Date endGmtModify;
	
	/**标示是否是单元 0 不是   1 是*/
	private Integer isUnit;
	/** 小区名字 */
	private String residenceName;
	/**楼栋名称*/
	private String parentName;

	public ShBuilding() {
		// 默认无参构造方法
	}

	/**
	 * 获取 residenceId
	 * 
	 * @return
	 */
	public Long getResidenceId() {
		return residenceId;
	}

	/**
	 * 设置 residenceId
	 * 
	 * @param residenceId
	 */
	public void setResidenceId(Long residenceId) {
		this.residenceId = residenceId;
	}

	public Date getStartGmtCreate() {
		return startGmtCreate;
	}

	public void setStartGmtCreate(Date startGmtCreate) {
		this.startGmtCreate = startGmtCreate;
	}

	public Date getEndGmtCreate() {
		return endGmtCreate;
	}

	public void setEndGmtCreate(Date endGmtCreate) {
		this.endGmtCreate = endGmtCreate;
	}

	public Date getStartGmtModify() {
		return startGmtModify;
	}

	public void setStartGmtModify(Date startGmtModify) {
		this.startGmtModify = startGmtModify;
	}

	public Date getEndGmtModify() {
		return endGmtModify;
	}

	public void setEndGmtModify(Date endGmtModify) {
		this.endGmtModify = endGmtModify;
	}


	/**
	 * 获取 parentId
	 * 
	 * @return
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * 设置 parentId
	 * 
	 * @param parentId
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * 获取 name
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置 name
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取 sortWeight
	 * 
	 * @return
	 */
	public Integer getSortWeight() {
		return sortWeight;
	}

	/**
	 * 设置 sortWeight
	 * 
	 * @param sortWeight
	 */
	public void setSortWeight(Integer sortWeight) {
		this.sortWeight = sortWeight;
	}

	/**
	 * 获取 gmtCreate
	 * 
	 * @return
	 */
	public Date getGmtCreate() {
		return gmtCreate;
	}

	/**
	 * 设置 gmtCreate
	 * 
	 * @param gmtCreate
	 */
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * 获取 gmtModify
	 * 
	 * @return
	 */
	public Date getGmtModify() {
		return gmtModify;
	}

	/**
	 * 设置 gmtModify
	 * 
	 * @param gmtModify
	 */
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	/**
	 * @return the active
	 */
	public Integer getActive() {
		return active;
	}

	/**
	 * @param active
	 *            the active to set
	 */
	public void setActive(Integer active) {
		this.active = active;
	}

	public String getResidenceName() {
		return residenceName;
	}

	public void setResidenceName(String residenceName) {
		this.residenceName = residenceName;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	
	/**
	 * @return the isUnit
	 */
	public Integer getIsUnit() {
		return isUnit;
	}
	
	/**
	 * @param isUnit the isUnit to set
	 */
	public void setIsUnit(Integer isUnit) {
		this.isUnit = isUnit;
	}
}